﻿@model CommerceOne.Widgets.HeroImage.HeroImageViewModel
           
 <div class="tmbanner1">
    @if (Model.Image != null && !String.IsNullOrEmpty(Model.Image.ImageUrl))
    {
        if (Model.Address != null && !String.IsNullOrEmpty(Model.Address.Text) && !String.IsNullOrEmpty(Model.Address.Address))
        {
            <a href="@Model.Address.Address" title="@Model.Address.Text">
            <img src="@Model.Image.ImageUrl" alt="@Model.Image.Alt" title="@Model.Image.Alt" /></a>
        }
        else
        {
            <img src="@Model.Image.ImageUrl" alt="@Model.Image.Alt" title="@Model.Image.Alt" />
        }
    } 
    </div>